package com.kingmed.kmss.framework.feign.client.admin;


import com.kingmed.kmss.common.dto.admin.ums.AdminAuthDTO;
import com.kingmed.kmss.common.dto.admin.ums.AdminDTO;
import com.kingmed.kmss.common.dto.admin.ums.AdminLoginDTO;
import com.kingmed.kmss.common.exception.InternalApiException;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import com.kingmed.kmss.common.vo.CommonResponse;

@Component
public class RemoteAdminFallbackService implements RemoteAdminService {


    public CommonResponse<AdminAuthDTO> loginCheck(@RequestBody AdminLoginDTO adminLoginDto) {
        throw new InternalApiException("->kmss-admin调用异常：登录验证");

    }

    @Override
    public CommonResponse<AdminAuthDTO> oaLoginQuery(String loginId) {
        throw new InternalApiException("->kmss-admin调用异常：OA单点登录匹配CRM用户失败");
    }

    @Override
    public CommonResponse<AdminAuthDTO> queryAdminByOAID(String oaLoginId) {
        throw new InternalApiException("->kmss-admin调用异常：获取用户失败");
    }

    @Override
    public CommonResponse<AdminDTO> getUserById(String id) {
        throw new InternalApiException("->kmss-admin调用异常：获取用户失败");
    }

    @Override
    public CommonResponse<AdminAuthDTO> loadAdminAuthDtoByUsernameNew(AdminLoginDTO adminLoginDto) {
        throw new InternalApiException("->kmss-admin调用异常：获取用户失败");
    }

}
